package weekend3;

import java.util.Arrays;

public class RegexStringDemo {
    public static void main(String[] args) {

        String email="eexl34@163.com";
        boolean boo=email.matches("[0-9a-zA-Z_]+@[0-9a-zA-Z]+(\\.[a-zA-Z]+)+");
        System.out.println(boo);

        String str="one#two#three#four#five";
        str=str.replaceAll("#","0.0");
        System.out.println(str);

        String[] data=str.split("0.0");
        System.out.println(Arrays.toString(data));

    }
}
